namespace ReportToolAPI.Models
{
    /// <summary>
    /// 数据库配置模型
    /// </summary>
    public class DatabaseConfig
    {
        public int Id { get; set; }
        public int Index { get; set; }
        public string Name { get; set; } = string.Empty;
        public string DatabaseName { get; set; } = string.Empty;
        public string Ip { get; set; } = string.Empty;
        public int Port { get; set; } = 1433;
        public string Username { get; set; } = string.Empty;
        public string Password { get; set; } = string.Empty;
    }

    /// <summary>
    /// 数据库连接测试请求
    /// </summary>
    public class TestConnectionRequest
    {
        public string DatabaseName { get; set; } = string.Empty;
        public string Ip { get; set; } = string.Empty;
        public int Port { get; set; } = 1433;
        public string Username { get; set; } = string.Empty;
        public string Password { get; set; } = string.Empty;
    }
}




